import type {RouteRecordRaw} from "vue-router";
import {Layout} from "~/layouts";

/**
 * @description 静态路由配置
 * @author ellwood
 * @date 2025-01-21
 * @version V1.0.0
 */

const staticRoutes = [
  {
    path: "/",
    name: "Index",
    component: Layout,
    redirect: "/home",
    children: [
      {
        path: "/home",
        name: "Home",
        component: () => import("~/pages/index.vue"),
        meta: { title: "首页" },
      },
    ],
  },
  {
    path: "/login",
    name: "Login",
    component: () => import("~/pages/login.vue"),
  },
] as RouteRecordRaw[];

export default staticRoutes;
